<template>
  <div class="registerDetail">
    <div class="task_header">
      <div class="top_title">
        <div class="top_title_back" @click="onClickLeft">
          <i class="iconfont icon-back"></i>
        </div>
        <div class="top_title_val">{{ $route.meta.title }}</div>
      </div>
    </div>

    <div class="task_detail">
      <div class="task_detail_header">
        <div class="task_detail_headerbox">
          <!-- <div class="title">

          </div> -->
          <div class="iconPhoneDiv">
            <div class="iconPhone">
              <van-image style="width: 120%;height: 120%;transform: rotate(315deg);"
                :src="require('@/assets/images/incomingCall/phone.png')" />
            </div>
          </div>

          <div class="iconPhoneName">
            <div class="iconPhoneTxt">{{ tel ? tel : '-' }}</div>
          </div>
        </div>
      </div>
    </div>

    <div class="tabBarBox">
      <van-tabs v-model="tabIndex" :swipe-threshold="3">
        <van-tab title="车辆信息">
          <div class="detailbox_item mt184">
            <!-- <van-pull-refresh v-model="refreshing" @refresh="onRefreshCar"> -->
            <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoadCar">
              <!-- <van-cell v-for="item in list" :key="item" :title="item" /> -->
              <div v-for="item in carList" :key="item.id">
                <div class="carList">
                  <van-row type="flex" justify="center">
                    <van-col span="10">
                      <div class="phone_content">
                        <van-row type="flex" justify="center" class="title">车主姓名</van-row>
                        <van-row type="flex" justify="center" class="text">
                          {{ item.ownerName ? item.ownerName : '--' }}
                        </van-row>
                      </div>

                      <div class="phone_content">
                        <van-row type="flex" justify="center" class="title">送修人姓名</van-row>
                        <van-row type="flex" justify="center" class="text">
                          {{ item.contactPeople ? item.contactPeople : '--' }}
                        </van-row>
                      </div>

                      <div class="phone_content">
                        <van-row type="flex" justify="center" class="title">客户姓名</van-row>
                        <van-row type="flex" justify="center" class="text">
                          {{ item.custName ? item.custName : '--' }}
                        </van-row>
                      </div>

                      <div class="phone_content">
                        <van-row type="flex" justify="center" class="title">车牌号码</van-row>
                        <van-row type="flex" justify="center" class="text">
                          {{ item.carNo ? item.carNo : '--' }}
                        </van-row>
                      </div>
                    </van-col>
                    <van-col span="12">
                      <div class="phone_content">
                        <van-row type="flex" justify="center" class="title">车主号码</van-row>
                        <van-row type="flex" justify="center">
                          <span v-if="item.ownerPhone == tel" class="text" style="color: red;">{{ item.ownerPhone
                            }}</span>
                          <span v-else class="text">
                            {{ item.ownerPhone ? item.ownerPhone : '--' }}
                          </span>
                        </van-row>
                      </div>

                      <div class="phone_content">
                        <van-row type="flex" justify="center" class="title">送修人电话</van-row>
                        <van-row type="flex" justify="center">
                          <span v-if="item.contactPhone == tel" class="text" style="color: red;">{{ item.contactPhone
                            }}</span>
                          <span v-else class="text">
                            {{ item.contactPhone ? item.contactPhone : '--' }}
                          </span>
                        </van-row>
                      </div>


                      <div class="phone_content">
                        <van-row type="flex" justify="center" class="title">客户电话</van-row>
                        <van-row type="flex" justify="center">
                          <van-row type="flex" justify="center">
                            <span v-if="item.custTel == tel" class="text" style="color: red;">{{ item.custTel
                              }}</span>
                            <span v-else class="text">
                              {{ item.custTel ? item.custTel : '--' }}
                            </span>
                          </van-row>
                        </van-row>
                      </div>


                      <div class="phone_content">
                        <van-row type="flex" justify="center" class="title">车架号</van-row>
                        <van-row type="flex" justify="center" class="text">
                          {{ item.vin ? item.vin : '--' }}
                        </van-row>
                      </div>
                    </van-col>
                  </van-row>
                  <div style="text-align: center;margin-top: 8px">
                    <van-image @click="goCarOrderDetail(item)"
                      :src="require('@/assets/images/incomingCall/goto.png')" />
                  </div>
                </div>
              </div>
            </van-list>
            <!-- </van-pull-refresh> -->
          </div>

        </van-tab>
        <van-tab title="历史通话">
          <div class="detailbox_item mt184">
            <!-- <van-pull-refresh v-model="refreshing" @refresh="onRefreshHis"> -->
            <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoadHis">
              <div v-for="item in hisList" :key="item.id">
                <div class="callDiv">
                  <van-row type="flex" justify="center">
                    <van-col span="3" style="place-self: center;">
                      <div>
                        <!-- <van-image :src="require('@/assets/images/incomingCall/call.png')" /> -->
                        <i class="iconfont  icon-incoming" style="color: #4898FF;" v-if="item.type == 0"></i>
                        <i class="iconfont  icon-outgoing" style="color: #4898FF;" v-if="item.type == 1"></i>
                      </div>
                    </van-col>
                    <van-col span="19">
                      <van-row type="flex" justify="space-between">
                        <van-col span="12.5" class="callUser"><span>{{ item.customerName==null ||  item.customerName==''?'[未知客户]':item.customerName }}</span></van-col>
                        <van-col span="11.5" style="text-align: right;"><span class="callDateStr">{{ item.startTimeStr
                            }}</span></van-col>
                      </van-row>
                      <van-row>
                        <span class="callInfo"> {{ item.customerNumber }} {{ !!item.customerProvince ? ('(' +
                          item.customerProvince +
                          (!!item.customerCity ? ('/' + item.customerCity) : '') + ')') : '' }}</span>
                      </van-row>
                      <van-row>
                        <span class="callInfoRed" v-if="item.status.indexOf('未') != -1" style="color: red;">{{
                          item.status }}</span>
                        <span class="callInfo" v-else>{{ item.status }}</span>
                      </van-row>
                    </van-col>

                  </van-row>
                  <div style="text-align: right;">
                    <van-button v-if="item.fileStatus == 1" class="callBtn" @click="goAsr(item)">查看对话文本</van-button>
                    <van-button v-if="!!item.billId && item.billId != null && item.billId != ''" class="callBtn"
                      @click="goTaskCenter(item)">查看关联任务</van-button>
                  </div>

                </div>
              </div>
            </van-list>
            <!-- </van-pull-refresh> -->
          </div>

        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>

import knowledgeBaseApi from '@/api/knowledgeBaseApi'
import aiccCallApi from '@/apiaicc/aiccCallApi'

let backIndex

export default {
  name: 'incomingCall',
  components: {
  },
  data() {
    return {
      tabIndex: 0,

      tel: '',
      // 车辆信息
      carShow: true,
      carList: [],
      // 历史通话
      hisList: [],
      loading: false,
      finished: false,
      refreshing: false,
    }
  },
  watch: {
  },
  beforeRouteEnter(to, from, next) {

    if(from.params.backIndex) {
      backIndex = from.params.backIndex
    }
    next();
  },

  mounted() {
    // if (this.$route.query) {
    //   this.billId = this.$route.query.billId
    //   this.getCarInfoBase(this.billId)
    //   this.getCoupon(this.billId)
    //   this.getRepairworkorder(this.billId)
    // }
    this.tel = this.$route.query.tel
    this.onLoadCar()
    this.onLoadHis()
    if(backIndex) {
      this.tabIndex = backIndex
    }
  },
  methods: {
    onClickLeft() {
      // this.$router.go(-1)
      this.$router.push('/home')
    },
    onLoadCar() {
      // 异步更新数据
      knowledgeBaseApi.getCustomerInfoByPhone({ 'tel': this.tel }).then(res => {
        if (res.code == 1) {
          if (this.refreshing) {
            this.carList = [];
            this.refreshing = false;
          }
          this.carList = res.data;
          // 加载状态结束
          this.loading = false;
          this.finished = true;
        }
      })
    },
    onRefreshCar() {
      // 清空列表数据
      this.finished = false;

      // 重新加载数据
      // 将 loading 设置为 true，表示处于加载状态
      this.loading = true;
      this.onLoadCar();
    },

    onLoadHis() {
      // 异步更新数据
      aiccCallApi.getCallLogPage({ 'searchValue': this.tel, 'pageSize': 5, 'todayData': 1 }).then(res => {
        if (res.code == 0) {
          if (this.refreshing) {
            this.hisList = [];
            this.refreshing = false;
          }
          this.hisList = res.data.data

          // 加载状态结束
          this.loading = false;

          // 数据全部加载完成
          if (this.hisList.length >= 5 || this.hisList.length == 0) {
            this.finished = true;
          }
        }
      })
    },
    onRefreshHis() {
      // 清空列表数据
      this.finished = false;

      // 重新加载数据
      // 将 loading 设置为 true，表示处于加载状态
      this.loading = true;
      this.onLoadHis();
    },
    goCarOrderDetail(data) {
      this.$router.push({
        path: '/carOrderDetail',
        query: { billId: data.carId, carNo: data.carNo, tabIndex: 5 ,backIndex: 1},
      })
    },
    goAsr(data) {
      this.$router.push({
        path: '/asr',
        query: {
          billId: data.id,
          billType: data.type,
          backIndex: 1
        },
      })
    },
    goTaskCenter(data) {
      localStorage.setItem('taskBillId', data.billId)
      this.$router.push({
        path: '/taskCenterDetail',
        query: {
          backIndex: 1
        }
      })
    },
  },
}
</script>

<style lang="less" scoped>
//@font-face {
//  font-family: 'Alibaba';
//  src: url('~@/assets/fonts/alibaba2.ttf');
//}

body {
  //font-family: 'Alibaba';
}

.registerDetail {
  //font-family: 'Alibaba';
}

.flex {
  display: flex;
}

.registerDetail {
  background: #f3f3f3;
  overflow: auto;

  .detail_header {
    justify-content: space-between;
    margin: 0.2rem 0.2rem;
    border-radius: 5px;
    background: #fff;
    padding: 0.3rem;
    position: relative;
    overflow: hidden;

    .detail_header_lt {
      .carNo {
        font-size: 0.32rem;
        font-weight: bold;
        margin-bottom: 0.2rem;

        .icon-right {
          margin-left: 0.2rem;
          color: #409eff;
        }
      }

      .hank {
        font-size: 0.28rem;
        color: #666;
      }
    }

    .detail_header_rt {
      justify-content: flex-start;

      .txt {
        font-size: 0.28rem;
        color: #161616;
      }

      .icon-tel {
        color: #fff;
        background: #35bc04;
        font-size: 0.32rem;
        padding: 0.1rem;
        border-radius: 50%;
        margin-right: 0.1rem;
      }
    }
  }

  .formData {
    background: #fff;
  }
}

/deep/ .label_box .van-field__control--custom {
  display: inline !important;
}

.carList {
  line-height: 20px;
  border-radius: 8px;
  background-color: rgba(249, 250, 252, 1);
  font-size: 14px;
  text-align: center;
  font-family: Roboto;
  padding: 10px 0px;
  margin: 15px 0px;

  .title {
    height: 23px;
    line-height: 23px;
    color: rgba(47, 47, 47, 1);
    font-size: 16px;
    text-align: center;
    font-family: PingFangSC-light;
  }

  .text {
    line-height: 23px;
    color: rgba(47, 47, 47, 1);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    //font-family: AlibabaPuHui-medium;
  }
}



.task_header {
  background: url('~@/assets/images/title_bg.png') no-repeat center;
  font-size: 0.24rem;
  height: 50px;
  background-size: 100% 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;

  .top_title {
    position: relative;
    width: 100%;
    height: 50px;

    .top_title_back {
      position: absolute;
      left: 30px;
      line-height: 50px;
      color: #fff;
    }

    .top_title_val {
      text-align: center;
      line-height: 50px;
      color: #fff;
      font-weight: bold;
      font-size: 16px;
    }

    .task_transbox {
      position: absolute;
      right: 10px;
      top: 5px;
      color: #fff;
      z-index: 10;
      font-weight: 400;
      font-size: 10px;
      text-align: center;

      .task_trans {
        width: 24px;
        display: block;
        margin: auto;
      }
    }
  }

  .task_header_data {
    .task_header_date {
      margin-bottom: 10px;
      display: flex;
      align-items: center;

      .task_header_date_w {
        width: 12.5%;
      }

      .task_header_date_item {
        width: 12.5%;
        text-align: center;
        color: #fff;
        font-size: 14px;
      }
    }

    .task_header_followData {
      display: flex;
      align-items: center;
      color: #fff;
      margin-bottom: 10px;

      .task_header_followData_tt {
        width: 12.5%;
        text-align: center;
      }

      .task_header_followData_item {
        width: 12.5%;
        text-align: center;
        font-size: 12px;
        font-weight: bold;
      }
    }
  }
}

.task_detail {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  z-index: 100;

  .task_detail_header {
    padding: 17px 0 10px;
    background: #fff;
    // margin-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
    position: relative;

    .title {
      text-align: center;
      //font-family: Alibaba;
      font-weight: 700;
      font-size: 16px;
      color: #333333;
      max-width: 60%;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      margin: auto;

    }

    .iconPhoneDiv {
      text-align: -webkit-center;

      .iconPhone {
        left: 177px;
        top: 10.89px;
        width: 40px;
        height: 40px;
        transform: rotate(45deg);

      }

    }



    .iconPhoneName {
      display: flex;
      text-align: center;
      width: 100%;
      justify-content: center;
      margin-top: 10px;

      .iconPhoneTxt {
        //font-family: Alibaba;
        font-weight: 700;
        text-align: center;
        font-size: 25px;
      }
    }

    .status {
      //font-family: Alibaba;
      font-weight: 700;
      font-size: 12px;
      text-align: center;
      position: absolute;
      top: 16px;
      right: 10px;
      border-radius: 2px;
      padding: 5px;
      display: flex;
      align-items: center;

      .status_icon {
        width: 12px;
        margin-right: 4px;
      }

      &.status1 {
        color: #ff1100;
        background: rgba(255, 48, 33, 0.2);
      }

      &.status2 {
        color: #00b42a;
        background: #e8ffea;
      }
    }
  }

  .tabbox {
    // padding: 0 10px;
    padding-top: 15px;
    border-top: 1px solid #f7f5f5;
    margin-top: 15px;
    position: relative;
    width: 7.5rem;
    overflow: hidden;

    .tab_list {
      width: 10rem;
      overflow-x: auto;
      clear: both;

      .tab_item {
        font-weight: 400;
        font-size: 14px;
        color: #4e5969;
        text-align: center;
        background: #f7f7f7;
        border-radius: 32px;
        padding: 8px 16px;
        margin-right: 6px;
        cursor: pointer;
        float: left;

        &:last-child {
          margin-right: 0;
        }

        &.active {
          color: #165dff;
          text-align: center;
          background: #d8e3ff;
        }
      }
    }
  }
}

.tabBarBox {
  position: relative;

  .icon_menubox {
    position: fixed;
    right: 0px;
    top: 116px;
    background: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 11;
  }

  .icon_menu {
    width: 27px;
    margin-left: 10px;
    // position: relative;
    // top: 0px;
    display: block;
    margin: auto;
    padding-top: 10px;
  }
}

.detailbox_item {
  margin-top: 10px;
  background: #fff;
  padding: 10px;

  .detailbox_item_title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2129;
    margin-bottom: 14px;
    background: url('~@/assets/images/ttbg.png') no-repeat left bottom;
    background-size: 32px 6px;
  }

  .detail_content {
    background: #f9fafc;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #fbfcfe;
    padding: 17px 16px;

    .task_item_type {
      margin-bottom: 20px;

      .task_item_tt {
        font-weight: 800;
        font-size: 12px;
        color: #86909c;
        margin-bottom: 10px;
      }

      .task_item_val {
        font-weight: 700;
        font-size: 16px;
        color: #333333;
      }

      .task_item_desc {
        font-weight: 300;
        font-size: 14px;
        color: #000000;
        background: #f2f3f5;
        padding: 5px 6px;
      }
    }

    .task_itembox {
      overflow: hidden;

      .task_itembox_con {
        width: 50%;
        margin-bottom: 15px;
        float: left;

        .task_label {
          font-weight: 400;
          font-size: 12px;
          color: #86909c;
          margin-bottom: 5px;
        }

        .task_value {
          font-weight: 700;
          font-size: 16px;
          color: #2f2f2f;
        }
      }
    }
  }

  .relat_tab {
    display: flex;
    margin-bottom: 10px;

    .relat_tab_item {
      font-weight: 500;
      font-size: 12px;
      color: #333333;
      border-radius: 4px;
      padding: 5px 8px;
      background: #f7f7f7;
      margin-right: 5px;

      &.active {
        color: #165dff;
        background: #d8e3ff;
      }
    }
  }

  .relat_content {
    .relat_item {
      background: #ffffff;
      box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.09);
      border-radius: 4px 4px 4px 4px;
      border: 1px solid #fbfcfe;
      margin-bottom: 20px;
      padding: 10px 9px 12px;

      .relat_content_header {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;

        .name {
          font-weight: bold;
          font-size: 14px;
          color: #333333;
        }

        .status {
          font-weight: 700;
          font-size: 12px;
          color: #00b42a;
          background: #e8ffea;
          border-radius: 2px 2px 2px 2px;
          padding: 5px 8px;

          &.status2 {
            background: rgba(255, 48, 33, 0.2);
            color: #ff1100;
          }
        }
      }

      .relat_carInfo {
        font-weight: 300;
        font-size: 14px;
        color: #000000;
        background: #f2f3f5;
        padding: 5px 6px;
        margin-bottom: 12px;
      }

      .relat_user {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        font-size: 12px;
        color: #165dff;
        background: #e8f5ff;
        border-radius: 2px 2px 2px 2px;
        padding: 5px 6px;
      }
    }
  }

  .followInfo_content {
    .followInfo_item {
      padding: 10px 0px 10px 20px;

      .followInfo_top {
        display: flex;
        align-items: center;
        margin-bottom: 10px;

        .followInfo_circle {
          background: #f2f2f2;
          border-radius: 50%;
          width: 9px;
          height: 9px;
          margin-right: 10px;
        }

        .followInfo_name {
          font-weight: 700;
          font-size: 14px;
          color: #86909c;
        }
      }

      .followInfo_box {
        display: flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;

        .followInfo_linebox {
          width: 1px;
          position: relative;
          -ms-flex-item-align: stretch;
          align-self: stretch;
          background: #f2f2f2;
          margin: 0 10px 0 4px;
        }

        .followInfo_val {
          width: 100%;
          padding: 12px 16px;
          background: #f9fafc;
          border-radius: 4px 4px 4px 4px;
          border: 1px solid #fbfcfe;
          flex: 1;

          .followInfo_val_item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;

            .item_label {
              font-weight: 400;
              font-size: 14px;
              color: #86909c;
            }

            .item_val {
              font-weight: 700;
              font-size: 14px;
              color: #2f2f2f;
            }
          }

          .followInfo_val_item2 {
            .item_label {
              font-weight: 400;
              font-size: 14px;
              color: #86909c;
              margin-bottom: 10px;
            }

            .item_val {
              font-weight: 300;
              font-size: 14px;
              color: #86909c;
              background: #f2f3f5;
              padding: 5px 6px;
            }
          }
        }
      }

      &.active {
        .followInfo_top {
          .followInfo_circle {
            background: #165dff;
          }

          .followInfo_name {
            color: #165dff;
          }
        }

        .followInfo_box {
          .followInfo_linebox {
            background: #165dff;
          }
        }
      }
    }
  }

  .carInfo_content {
    background: #f9fafc;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #fbfcfe;
    padding: 7px 16px;

    .carInfo_item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;

      .item_label {
        font-weight: 400;
        font-size: 12px;
        color: #86909c;
      }

      .item_val {
        font-weight: 700;
        font-size: 12px;
        color: #333333;
      }

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .contact_content {
    .contact_item {
      box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.02);
      border-radius: 4px 4px 4px 4px;
      border: 1px solid #f4f4f6;
      margin-bottom: 3px;
      padding: 12px 10px 12px 10px;

      .contact_top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 14px;

        .item_label {
          font-weight: 700;
          font-size: 12px;
          color: #165dff;
          background: #e8f5ff;
          border-radius: 2px 2px 2px 2px;
          padding: 4px 5px;
        }

        .item_icon {
          display: flex;

          .item_img {
            width: 29px;
            height: 29px;
            margin-right: 17px;

            &:last-child {
              margin-right: 0;
            }
          }
        }
      }

      .contact_bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 4px;

        .item_name {
          display: flex;

          .txt1 {
            font-weight: 400;
            font-size: 12px;
            color: #86909c;
          }

          .txt2 {
            font-weight: 700;
            font-size: 12px;
            color: #2f2f2f;
          }
        }
      }
    }
  }

  .repair_content {
    .no_icon {
      margin-top: 60px;
    }

    .repair_list {
      .repair_item {
        box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.05);
        border-radius: 4px 4px 4px 4px;
        border: 1px solid #f4f4f6;
        padding: 10px;
        margin-bottom: 10px;

        .item_top {
          display: flex;
          justify-content: space-between;
          border-bottom: 1px solid #f7f5f5;
          padding-bottom: 10px;

          .item_num {
            display: flex;

            .item_icon {
              width: 11px;
              margin-right: 5px;
            }

            .item_name {
              font-weight: 800;
              font-size: 14px;
              color: #333333;
            }
          }

          .item_btn {
            font-weight: 400;
            font-size: 12px;
            color: #165dff;
          }
        }

        .item_bottom {
          padding-top: 8px;

          .item_box {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            align-items: center;
            width: 100%;

            .item_lt {
              display: flex;

              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
              }

              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
              }
            }

            .item_rt {
              background: #e8f5ff;
              border-radius: 2px 2px 2px 2px;
              font-weight: 700;
              font-size: 10px;
              color: #165dff;
              padding: 3px 5px;
              display: flex;

              .item_lable {}

              .item_val {}

              .item_tel {
                margin-left: 5px;
              }
            }
          }

          .item_box2 {
            .item_lt {
              display: flex;

              /* 使用弹性盒模型 */
              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
                width: 60px;
              }

              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
                width: calc(100% - 60px);
              }
            }
          }
        }
      }
    }
  }

  .card_content {
    min-height: calc(100vh - 150px);

    .card_item {
      border-radius: 4px;
      position: relative;
      height: 86px;
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      background: #fff;

      .item_lt {
        width: 134px;
        height: 86px;
        font-weight: 700;
        font-size: 36px;
        line-height: 86px;
        color: #ffffff;
        background: url('~@/assets/images/card_bg.png') no-repeat center;
        background-size: 134px 86px;
        text-align: center;
        margin-right: 10px;
        border-radius: 0px 12px 12px 0px;
      }

      .item_rt {
        padding-top: 10px;

        .item_name {
          margin-bottom: 8px;
          font-weight: 700;
          font-size: 12px;
          color: #2f2f2f;
        }

        .item_number {
          font-weight: 700;
          font-size: 12px;
          color: #2f2f2f;
          margin-bottom: 8px;
        }

        .item_time {
          font-weight: 400;
          font-size: 12px;
          color: #86909c;
          display: flex;

          .txt1 {
            margin-right: 10px;
          }
        }
      }

      .item_type {
        font-weight: 700;
        font-size: 10px;
        color: #ffffff;
        text-align: center;
        padding: 2px 10px;
        border-radius: 0px 4px 0px 4px;
        background: #ff2b2b;
        position: absolute;
        top: 0px;
        right: 0;
      }
    }
  }

  .no_icon {
    padding: 25px;

    .no_icon_img {
      width: 70px;
      display: block;
      margin: auto;
    }

    .no_icon_txt {
      font-weight: 400;
      font-size: 14px;
      color: #86909c;
      text-align: center;
      margin-top: 10px;
    }
  }
}


.mt184 {
  margin-top: 184px;
}


/deep/ .van-tabs__line {
  display: none;
}

/deep/ .van-tab {
  font-weight: 400;
  max-width: 100px;
  font-size: 14px;
  color: #4e5969;
  text-align: center;
  background: #f7f7f7;
  border-radius: 32px;
  padding: 8px 16px;
  margin-right: 6px;
  // cursor: pointer;
  // flex: inherit;
}

/deep/ .van-tab--active {
  color: #165dff;
  text-align: center;
  background: #d8e3ff;
}

/deep/ .van-tabs__nav--line {
  height: 30px;
  padding: 10px;
}

/deep/ .van-tabs--line .van-tabs__wrap {
  height: auto;
  position: fixed;
  top: 144px;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #fff;
}

/deep/ .van-tabs__wrap--scrollable .van-tabs__nav {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 85%;
}


.callDiv {
  padding: 10px 0px;
  line-height: 20px;
  margin: 10px 0px;
  background-color: rgba(255, 255, 255, 1);
  color: rgba(16, 16, 16, 1);
  font-size: 14px;
  font-family: Roboto;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.callUser {
  height: 23px;
  line-height: 23px;
  color: rgba(16, 16, 16, 1);
  font-size: 16px;
}

.callDateStr {
  height: 23px;
  line-height: 23px;
  color: rgba(16, 16, 16, 0.56);
  font-size: 14px;
}

.callInfo {
  height: 20px;
  line-height: 20px;
  color: rgba(132, 132, 134, 1);
  font-size: 14px;
}

.callInfoRed {
  height: 20px;
  line-height: 20px;
  color: rgba(132, 132, 134, 1);
  font-size: 14px;
}

.callBtn {
  width: 117.45px;
  height: 25px;
  line-height: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 1);
  color: rgba(22, 93, 255, 1);
  font-size: 14px;
  text-align: center;
  font-family: Roboto;
  border: 1px solid rgba(22, 93, 255, 0.51);
}
</style>
